package cn.jbt.api.admin.repository;

import cn.jbt.api.admin.entity.SysRole;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysRoleRepository extends JpaRepository<SysRole, Long> {

    SysRole findFirstByRolePermission(String rolePermission);

    SysRole findFirstByRolePermissionAndIdNot(String rolePermission, long id);

    SysRole findFirstById(long id);
}
